<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <script src="../vue.js"></script>
  </head>

  <body>
    <div id="app">
      <div v-text="message1">我是div1</div>
      <div v-text="message2">我是div1</div>
      <div v-html="message1">我是div2</div>
      <div v-html="message2">我是div2</div>
    </div>
    <script>
      Vue.config.productionTip = false;

      const vm = new Vue({
        el: "#app",
        data() {
          return {
            message1: "hello world",
            message2: "<a href='https://www.baidu.com'>hello world</a>",
          };
        },
      });
    </script>
  </body>
</html>
